<template>
  <span v-if="props.text !== ''">
    {{ props.text }}
  </span>
  <span v-else>{{ props.desc }}</span>
</template>

<script setup lang="ts">
const props = defineProps({
  text: {
    type: String
  },
  desc: {
    type: String,
    default: function(){
        return "空"
    },
  }
});
</script>

<style lang="scss" scoped></style>
